package com.xbongbong.pro.esign.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 开关电子合同
 * 创建时间 2020/6/17 2:13 PM
 * 修改时间 2020/6/17 2:13 PM
 * @author chy
 */
@Getter
@Setter
@ToString
public class EsignSetSwitchDTO extends BaseDTO {
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.esign.formId.NotNull}")
    private Long formId;
    /**
     * 是否开启，0不可用，1可用
     */
    @NotNull(message = "{dto.msg.esign.enable.NotNull}")
    @Min(value=0, message = "{dto.msg.esign.enable.Min}")
    @Max(value=1, message = "{dto.msg.esign.enable.Max}")
    private Integer enable;
}
